import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    proxy: {
      '/api': {
        target: 'https://www.wanandroid.com/article/list/0/json',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, '')
      } 
    }
  },
  base: '/vite_msr_test/',
  // base: process.env.NODE_ENV === 'production' ? '/lanvenous.protocal.io/' : '/'
})
